﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-lazy="true" assembly="Ghasam.Business" namespace="Ghasam.Business.Domain.Entity">
	<class name="Accounting" table="Accounting">
		<id name="Id" type="Int32" unsaved-value="0">
			<column name="ID" sql-type="int" not-null="true" unique="true" index="ID" />
			<generator class="native" />
		</id>

		<many-to-one class="Customer" name="Customer" column="CustomerId" />
		<many-to-one class="Payment" name="Payment" not-null="false" column="PaymentId" />

		<property name="IsFormal" column="IsFormal" type="Boolean" />
		<property name="Debit" column="Debit" type="Single" />
		<property name="Credit" column="Credit" type="Single" />
		<property name="Description" column="Description" type="String" length="250" not-null="false" />
		<property name="AccountingDate" column="AccountingDate" type="DateTime" />
		<property name="CreateDate" column="CreateDate" type="DateTime" />
	</class>
</hibernate-mapping>
